package ${package}.service.impl;
import ${package}.entity.${table.className};
import ${package}.service.*;
import ${package}.dao.${table.className}Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
@Service
@Data
public class ${table.className}Service implements ${table.className}ServiceImpl{
	@Autowired
	private ${table.className}Mapper ${lowerClassName}Mapper;
	public ${table.className} get${table.className}ById(Long id){
		return ${lowerClassName}Mapper.get(id);
	}
	public List<${table.className}> get${table.className}ListByMap(Map<String,Object> param){
		return ${lowerClassName}Mapper.get${table.className}ListByMap(param);
	}
	public Integer get${table.className}CountByMap(Map<String,Object> param){
		return ${lowerClassName}Mapper.get${table.className}CountByMap(param);
	}
	@Transactional(propagation = Propagation.REQUIRED)
	public Integer insert${table.className}(${table.className} ${lowerClassName}){
		return ${lowerClassName}Mapper.insert${table.className}(${lowerClassName});
	}
	@Transactional(propagation = Propagation.REQUIRED)
	public Integer update${table.className}(${table.className} ${lowerClassName}){
		return ${lowerClassName}Mapper.update(${lowerClassName});
	}
	@Transactional(propagation = Propagation.REQUIRED)
	public Integer delete${table.className}ById(Long id){
		return ${lowerClassName}Mapper.delete(id);
	}
	@Transactional(propagation = Propagation.REQUIRED)
	public Integer batchDelete${table.className}(Map<String,List<String>> params){
		return ${lowerClassName}Mapper.batchDelete(params);
	}
}
